package com.hxzy.controller.anonymous.merchandiser.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.math.BigDecimal;

/**
 * @Author wy
 * @Description 重新提交商家资料
 * @Date 2023/9/12 17:01
 * @Version 1.0
 */
@Getter
@Setter
@ToString
@ApiModel(value = "重新提交商家资料")
public class MerchandiserEditReq {

    @NotNull(message = "商家ID不能为空")
    @ApiModelProperty(value = "商家ID")
    private Long id;


    @NotBlank(message = "商家名称不能为空")
    @ApiModelProperty(value = "商家名称",required = true)
    private String name;

    /**
     * 商家地址
     */
    @NotBlank(message = "商家地址不能为空")
    @ApiModelProperty(value = "商家地址",required = true)
    private String address;

    /**
     * 联系电话
     */
    @NotBlank(message = "联系电话不能为空")
    @ApiModelProperty(value = "联系电话",required = true)
    private String phone;

    /**
     * 商家图片
     */
    @NotBlank(message = "商家图片不能为空")
    @ApiModelProperty(value = "商家图片",required = true)
    private String picture;

    /**
     *  商家位置经度
     */
    @NotNull(message = "经度不能为空")
    @ApiModelProperty(value = "经度",required = true)
    private BigDecimal longitude;

    /**
     * 商家位置纬度
     */
    @NotNull(message = "纬度不能为空")
    @ApiModelProperty(value = "纬度",required = true)
    private BigDecimal latitude;

}
